package jpa.repository;

import jpa.entity.Order;
import org.springframework.data.jpa.repository.EntityGraph;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * Created by barton on 16-5-11.
 */
public interface OrderRepository extends CrudRepository<Order, Long> {
    @EntityGraph(value = "graph.Order.items")
    List<Order> findAll();

}
